3.5 Layouts

  1. Motivations

  2. Layouts
    • TRU Board Game Playground uses a framework called Bootstrap.
    • Bootstrap is the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first web sites.
    • Read all in Bootstrap Tutorial.
    • Read all in Bootstrap Get Started.
      • What is RWD?
      • What does Bootstrap include? Are design templates included?
      • <meta> tag?
      • Typical structure to use Bootstrap
        1. <meta> tag
        2. Bootstrap CSS library
        3. jQuery library
        4. Bootstrap JS library
        5. div.container or div.container-fluid class - not nestable
    • How to adjust the layout?
      • Read all in Bootstrap Grids.
      • div.col-(xs|sm|md|lg)-(1|2|...|12) within div.row
    • Trial 1: Let's try to give good divisions. Two rows, and two columns in the second row.

    • How many rows and columns can you see in TRU Board Game Playground?
  3. Lab 2.
    • The layout in the next program, lab2_bgp.html, is not correctly supported.
    • Find the place for the container, rows and columns, and fix them.
    • Let's download and complete the program.

  4. Learning outcomes